﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using System.Windows.Controls;
using Microsoft.Practices.Prism.Commands;

namespace ListViewItemFloatTest
{
    public class ListViewItemDoubleClickCommandBehavior : CommandBehaviorBase<ListViewItem>
    {
        public ListViewItemDoubleClickCommandBehavior(ListViewItem clickableListViewItem)
            :base(clickableListViewItem)
        {
            clickableListViewItem.MouseDoubleClick += this.OnMouseDoubleClick;
        }

        private void OnMouseDoubleClick(object sender, System.Windows.RoutedEventArgs e)
        {
            this.ExecuteCommand();
        }
    }
}
